package com.itheima.d8_generics_class;

public class MyArrayList <E> {
    private Object[] arr = new Object[10];
    private int index = 0;

    public boolean add(E e){
        arr[index++] = e;
        return true;
    }

    public E get(int index){
        return (E)arr[index];
    }
}
